<style type="text/css">
    body {background-color:#DDDDDD;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Flash Gallery</title>

<!-- Location of javascript. -->
<script language="javascript" type="text/javascript" src="flashgallery/swfobject.js" ></script>

<!-- Div that contains gallery. -->
<div id="gallery">
    <h1>No flash player!</h1>
    <p>It looks like you don't have flash player installed. <a href="http://www.macromedia.com/go/getflashplayer" >Click here</a> to go to Macromedia download page.</p>
</div>

<!-- Script that embeds gallery. -->
<script language="javascript" type="text/javascript">
    var sURL = window.document.URL.toString();
    var a = sURL.split('?');
    var param_total = a[1];
    var b = param_total.split('&');
    var modul_total = b[0];
    var action_total = b[1];
    var c = modul_total.split('=');
    var modul = c[1];
    var d = action_total.split('=');
    var action = d[1];
    var Url_Img = "";
    if (modul == 'info' && action == 'home') {
	Url_Img = "img_gallery_home";
    }else{
	Url_Img = "img_gallery";
	}
    var so = new SWFObject("flashgallery/flashgallery.swf", "gallery", "800", "600", "8"); // Location of SWF file. You can change gallery width and height here (using pixels or percents).
    so.addParam("quality", "high");
    so.addParam("allowFullScreen", "true");
    so.addParam("wmode", "transparent");
    so.addVariable("content_path", Url_Img); // Location of a folder with JPG and PNG files (relative to php script).
    so.addVariable("color_path", "flashgallery/default.xml"); // Location of XML file with settings.
    so.addVariable("script_path", "flashgallery/flashgallery.php"); // Location of PHP script.
//so.addVariable("api_key","xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); // Flickr API key.
    so.write("gallery");
</script>